package com.ocgs.code.dao;

import com.ocgs.base.core.exception.BaseDAOException;
import com.ocgs.code.model.Code;
import com.ocgs.code.model.CodeKey;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: bryant
 * Date: 10/21/12
 * Time: 10:48 PM
 * To change this template use File | Settings | File Templates.
 */
public interface CodeDAO {

    public int deleteByPrimaryKey(CodeKey codeKey) throws BaseDAOException;

    public int insert(Code record) throws BaseDAOException;

    public int insertSelective(Code record) throws BaseDAOException;

    public Code selectByPrimaryKey(CodeKey codeKey) throws BaseDAOException;

    public int updateByPrimaryKeySelective(Code record) throws BaseDAOException;

    public int updateByPrimaryKey(Code record) throws BaseDAOException;

    public List<Code> findAllCode(Code record) throws BaseDAOException;

}
